#if OS_ANDROID
#include <jni.h>
#include <android/log.h>
#include "Hello.h"
#include <stdio.h>

//this is JNI function
//this function of this JNI function is implement for native funtion in Java side
//package "com.example.myandroid.MyAndroidAppActivity" with native function is "myadd"
//this function call funtion of C++ is addByC for add x and y and return result
extern "C"
{
	JNIEXPORT jint JNICALL  Java_com_example_myandroid_MyAndroidAppActivity_myadd(JNIEnv * env, jobject obj,int x,int y);
}
JNIEXPORT jint JNICALL  Java_com_example_myandroid_MyAndroidAppActivity_myadd(JNIEnv * env, jobject obj,int x,int y)
{
	return addByC(x,y);
	
}
#endif



